package com.grass.p019lv.databinding;

import android.util.SparseIntArray;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;
import androidx.appcompat.widget.Toolbar;
import androidx.core.widget.NestedScrollView;
import androidx.databinding.DataBindingComponent;
import androidx.databinding.ViewDataBinding;
import androidx.recyclerview.widget.RecyclerView;
import com.androidsa.bttsddka.R;
import com.grass.p019lv.generated.callback.OnClickListener;
import com.grass.p019lv.novel.activity.NovelActivity;
import com.zhy.view.flowlayout.TagFlowLayout;

/* renamed from: com.grass.lv.databinding.ActivityNovelBindingImpl */
public class ActivityNovelBindingImpl extends ActivityNovelBinding implements OnClickListener.Listener {
    private static final ViewDataBinding.IncludedLayouts sIncludes = null;
    private static final SparseIntArray sViewsWithIds;
    private final View.OnClickListener mCallback2;
    private final View.OnClickListener mCallback3;
    private final View.OnClickListener mCallback4;
    private final View.OnClickListener mCallback5;
    private final View.OnClickListener mCallback6;
    private final View.OnClickListener mCallback7;
    private long mDirtyFlags;
    private final TextView mboundView1;
    private final LinearLayout mboundView2;
    private final LinearLayout mboundView3;
    private final LinearLayout mboundView4;
    private final LinearLayout mboundView5;
    private final LinearLayout mboundView6;

    /* access modifiers changed from: protected */
    @Override // androidx.databinding.ViewDataBinding
    public boolean onFieldChange(int i, Object obj, int i2) {
        return false;
    }

    static {
        SparseIntArray sparseIntArray = new SparseIntArray();
        sViewsWithIds = sparseIntArray;
        sparseIntArray.put(R.id.tool_bar, 7);
        sViewsWithIds.put(R.id.tv_tool_title, 8);
        sViewsWithIds.put(R.id.scroll_view, 9);
        sViewsWithIds.put(R.id.tv_novel_title, 10);
        sViewsWithIds.put(R.id.tv_novel, 11);
        sViewsWithIds.put(R.id.flow_type, 12);
        sViewsWithIds.put(R.id.iv_collect, 13);
        sViewsWithIds.put(R.id.tv_comment, 14);
        sViewsWithIds.put(R.id.tv_donate, 15);
        sViewsWithIds.put(R.id.rl_ad, 16);
        sViewsWithIds.put(R.id.iv_ad, 17);
        sViewsWithIds.put(R.id.tv_ad, 18);
        sViewsWithIds.put(R.id.recycler, 19);
    }

    public ActivityNovelBindingImpl(DataBindingComponent dataBindingComponent, View view) {
        this(dataBindingComponent, view, mapBindings(dataBindingComponent, view, 20, sIncludes, sViewsWithIds));
    }

    private ActivityNovelBindingImpl(DataBindingComponent dataBindingComponent, View view, Object[] objArr) {
        super(dataBindingComponent, view, 0, (TagFlowLayout) objArr[12], (ImageView) objArr[17], (ImageView) objArr[13], (RecyclerView) objArr[19], (RelativeLayout) objArr[16], (LinearLayout) objArr[0], (NestedScrollView) objArr[9], (Toolbar) objArr[7], (TextView) objArr[18], (TextView) objArr[14], (TextView) objArr[15], (TextView) objArr[11], (TextView) objArr[10], (TextView) objArr[8]);
        this.mDirtyFlags = -1;
        TextView textView = (TextView) objArr[1];
        this.mboundView1 = textView;
        textView.setTag(null);
        LinearLayout linearLayout = (LinearLayout) objArr[2];
        this.mboundView2 = linearLayout;
        linearLayout.setTag(null);
        LinearLayout linearLayout2 = (LinearLayout) objArr[3];
        this.mboundView3 = linearLayout2;
        linearLayout2.setTag(null);
        LinearLayout linearLayout3 = (LinearLayout) objArr[4];
        this.mboundView4 = linearLayout3;
        linearLayout3.setTag(null);
        LinearLayout linearLayout4 = (LinearLayout) objArr[5];
        this.mboundView5 = linearLayout4;
        linearLayout4.setTag(null);
        LinearLayout linearLayout5 = (LinearLayout) objArr[6];
        this.mboundView6 = linearLayout5;
        linearLayout5.setTag(null);
        this.rootView.setTag(null);
        setRootTag(view);
        this.mCallback7 = new OnClickListener(this, 6);
        this.mCallback5 = new OnClickListener(this, 4);
        this.mCallback6 = new OnClickListener(this, 5);
        this.mCallback3 = new OnClickListener(this, 2);
        this.mCallback4 = new OnClickListener(this, 3);
        this.mCallback2 = new OnClickListener(this, 1);
        invalidateAll();
    }

    @Override // androidx.databinding.ViewDataBinding
    public void invalidateAll() {
        synchronized (this) {
            this.mDirtyFlags = 8;
        }
        requestRebind();
    }

    @Override // androidx.databinding.ViewDataBinding
    public boolean hasPendingBindings() {
        synchronized (this) {
            if (this.mDirtyFlags != 0) {
                return true;
            }
            return false;
        }
    }

    @Override // androidx.databinding.ViewDataBinding
    public boolean setVariable(int i, Object obj) {
        if (138 == i) {
            setPlayStatus(((Boolean) obj).booleanValue());
        } else if (171 == i) {
            setStatusRefresh((Integer) obj);
        } else if (34 != i) {
            return false;
        } else {
            setClick((NovelActivity.OnClick) obj);
        }
        return true;
    }

    @Override // com.grass.p019lv.databinding.ActivityNovelBinding
    public void setPlayStatus(boolean z) {
        this.mPlayStatus = z;
    }

    @Override // com.grass.p019lv.databinding.ActivityNovelBinding
    public void setStatusRefresh(Integer num) {
        this.mStatusRefresh = num;
    }

    @Override // com.grass.p019lv.databinding.ActivityNovelBinding
    public void setClick(NovelActivity.OnClick onClick) {
        this.mClick = onClick;
        synchronized (this) {
            this.mDirtyFlags |= 4;
        }
        notifyPropertyChanged(34);
        super.requestRebind();
    }

    /* access modifiers changed from: protected */
    @Override // androidx.databinding.ViewDataBinding
    public void executeBindings() {
        long j;
        synchronized (this) {
            j = this.mDirtyFlags;
            this.mDirtyFlags = 0;
        }
        NovelActivity.OnClick onClick = this.mClick;
        if ((j & 8) != 0) {
            this.mboundView1.setOnClickListener(this.mCallback2);
            this.mboundView2.setOnClickListener(this.mCallback3);
            this.mboundView3.setOnClickListener(this.mCallback4);
            this.mboundView4.setOnClickListener(this.mCallback5);
            this.mboundView5.setOnClickListener(this.mCallback6);
            this.mboundView6.setOnClickListener(this.mCallback7);
        }
    }

    @Override // com.grass.p019lv.generated.callback.OnClickListener.Listener
    public final void _internalCallbackOnClick(int i, View view) {
        boolean z = true;
        switch (i) {
            case 1:
                NovelActivity.OnClick onClick = this.mClick;
                if (onClick == null) {
                    z = false;
                }
                if (z) {
                    onClick.btnBack();
                    return;
                }
                return;
            case 2:
                NovelActivity.OnClick onClick2 = this.mClick;
                if (onClick2 == null) {
                    z = false;
                }
                if (z) {
                    onClick2.novelMenu();
                    return;
                }
                return;
            case 3:
                NovelActivity.OnClick onClick3 = this.mClick;
                if (onClick3 == null) {
                    z = false;
                }
                if (z) {
                    onClick3.nextChapter();
                    return;
                }
                return;
            case 4:
                NovelActivity.OnClick onClick4 = this.mClick;
                if (onClick4 == null) {
                    z = false;
                }
                if (z) {
                    onClick4.collectNovel();
                    return;
                }
                return;
            case 5:
                NovelActivity.OnClick onClick5 = this.mClick;
                if (onClick5 == null) {
                    z = false;
                }
                if (z) {
                    onClick5.commentNovel();
                    return;
                }
                return;
            case 6:
                NovelActivity.OnClick onClick6 = this.mClick;
                if (onClick6 == null) {
                    z = false;
                }
                if (z) {
                    onClick6.donateNovel();
                    return;
                }
                return;
            default:
                return;
        }
    }
}
